/*
	Master do file that runs all the do files.
	Make sure to change the directory if necessary. 
	All analytic datasets and figures/tables
	will be created in the same folder.
	
	Note: Figures were originally generated as eps files. We've changed the do files
	to generate them as pngs to make it easy to look at them.
	
	Last updated July 12, 2024. 
*/
cd ""

log using masterlog.log, text replace

do 1_clean_data.do
do 2_study1_analysis.do
do 3_study2_analysis.do
do 4_study2_tables.do

// Files 5-10 are appendix tables/figures
do 5_appendix_a1.do
do 6_appendix_figure_s1.do
do 7_appendix_figure_s2.do
do 8_appendix_figure_s3.do
do 9_appendix_figure_s4-s7.do
do 10_appendix_figure_s8-s9.do


// Clean up extraneous files from outreg and graphing
fs *.txt
foreach f in `r(files)' {
	erase `f'
}

fs *.gph
foreach f in `r(files)' {
	erase `f'
}

fs *.tmp
foreach f in `r(files)' {
	erase `f'
}

log close

